<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>聚美优品-美妆商城-内容页</title>
	<link rel="stylesheet" type="text/css" href="http://127.0.0.1/jumeiphp/Application/Index/View/Public/css/content.css"/>
	<link rel="stylesheet" type="text/css" href="http://127.0.0.1/jumeiphp/Application/Index/View/Public/css/style.css"/>
	<script src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/js/list.js" type="text/javascript" charset="utf-8"></script>
	<script src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/js/header.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(function(){
			$('.big_pic_list li').first().css('display','block');
			$('.biggest_pic ul li').first().show().siblings('li').hide();

			// 产品规格部分js
			$('#pro-info .jingxuan .price .spec span').first().addClass('cur');
			$('#pro-info .jingxuan .price .spec span').click(function() {
				$(this).addClass('cur').siblings('span').removeClass('cur');
			});
		})
	</script>
</head>
<body style="background: #F7F7F7">
	
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div class="header">
	<!--头部横条-->
	<div class="header-top">
		<div class="header-top-box">
			<ul class="headerTopLeft fl">
				<li>欢迎来到聚美！</li>
				<?php if(!$_SESSION['uid'] || !$_SESSION['uname']) : ?>
				<li><a href="<?php echo U('Login/index');?>">请登录</a></li>
				<li><a href="<?php echo U('Login/reg');?>">快速注册</a></li>
				<?php else: ?>
					<li>欢迎 <a href="<?php echo U('My/dingdan');?>"><font color="red"><?php echo $hd['session']['uname'];?></font> </a>回来</li>
					<li><a href="<?php echo U('Login/out');?>">退出登陆</a></li>
				<?php endif ?>
			</ul>
			<!--<div class="default-city fl">
				<span class="add-city-icons">送至
					<span class="add-default-city">北京</span>
					<s class="icon_arrow_down"></s>
					<i class="user-local-icon"></i>
				</span>-->
				<!--<div class="header-city-list">
					<dl>
						<dd>    
							<span class="sheng fl">华北</span>
							<div class="city-list fl">
								<a href="">北京</a>
								<a href="">天津</a>
								<a href="">河北</a>
								<a href="">山西</a>
								<a href="">内蒙古</a>
							</div>
						</dd>
						<dd>    
							<span class="sheng fl">华北</span>
							<div class="city-list fl">
								<a href="">北京</a>
								<a href="">天津</a>
								<a href="">河北</a>
								<a href="">山西</a>
								<a href="">内蒙古</a>
							</div>
						</dd>
						<dd>    
							<span class="sheng fl">华北</span>
							<div class="city-list fl">
								<a href="">北京</a>
								<a href="">天津</a>
								<a href="">河北</a>
								<a href="">山西</a>
								<a href="">内蒙古</a>
							</div>
						</dd>
					</dl>
				</div>
			</div>-->
			<ul class="headerTopRight fr">
				<li><a href="<?php echo U('Index/My/dingdan');?>">订单查询</a></li>
				<!--<li><a href="javascript:;">
					<s class="icon_favorite"></s>
					收藏的品牌</a></li>-->
				<li class="item_ijumei youxiala">
					<a href="<?php echo U('Index/My/dingdan');?>">我的聚美<s class="icon_arrow_down"></s></a>
					<i class="ijumeiI"></i>
					<!--<div style="height: auto; overflow: visible;" class="hide sub_nav">
	                    <ul>
	                        <li><a href="" rel="nofollow">我的订单</a></li>
	                    </ul>
	                </div>-->
				</li>
				<!--<li class="item_mobile"><a href="javascript:;">手机聚美
					<span class="line"></span><s class="icon_mobile"></s>
				</a></li>-->
				<!--<li class="item_koubei"><a href="javascript:;"><s class="icon_koubei"></s>口碑中心</a></li>-->
				<li class="see_more youxiala">
					<span class="line"></span>
					<div class="look_all_box">
						<a class="look_all"><span>查看分类</span>
	                        <b class="grid png"></b>
	                        <b class="close png"></b>
	                    </a>
	                    <i></i>	                    
	                    <div class="hide class_list_wrap">
	                    	
							<div class="pop_item_wrap">
								<div class="pop_item" style="display: block;">
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
								<div class="pop_item">
									<dl>
										<dt>彩妆香氛</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
								<div class="pop_item">
									<dl>
										<dt>身体护理</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
								<div class="pop_item">
									<dl>
										<dt>服饰内衣</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
								<div class="pop_item">
									<dl>
										<dt>鞋包配饰</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
								<div class="pop_item">
									<dl>
										<dt>居家母婴</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
									<dl>
										<dt>面部护肤</dt>
										<dd>
											<a href="">洗发露</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
											<a href="">洗发水</a>
										</dd>
									</dl>
								</div>
							</div>
							<div class="pop_list_wrap">
								<ul class="pop_list">
									<li class="t1 current"><a class="t1_link" href="">面部护理</a></li>
									<li class="t2"><a class="t2_link" href="">彩妆香氛</a></li>
									<li class="t3"><a class="t3_link" href="">身体护理</a></li>
									<li class="t4"><a class="t4_link" href="">服饰/内衣</a></li>
									<li class="t5"><a class="t5_link" href="">鞋包/配饰</a></li>
									<li class="t6"><a class="t6_link" href="">居家/母婴</a></li>
								</ul>
							</div>
						</div>
					</div>
					
				</li>
				<!--<li class="item_more">
					<a href="javascript:;">更多
						<s class="icon_arrow icon_arrow_down"></s>
					</a>
				</li>-->
			</ul>
		</div>
	</div>
	<!--头部横条-->
	<!--logo和搜索部分-->
	<div class="header_center">
		<h1 class="logo fl"><a href="<?php echo U('Index/Index/index');?>">化妆品品牌排行榜大全网站聚美优品</a></h1>
		<div class="header_searchbox header_out_searchbox fl">
	        <form action="" method="get" pos="top">
	            <input name="filter" value="0-11-1" type="hidden">
	            <input name="search" class="header_search_input" value="悦诗风吟" autocomplete="off" type="text"  onfocus="javascript:if(this.value=='悦诗风吟')this.value='';">
	            <input name="from" type="hidden">
	            <input name="cat" type="hidden">
	            <button type="submit" class="header_search_btn">搜索</button>
	        </form>
	        <div class="search_result_pop_a" id="top_out_search_pop_div"></div>
	
	        <ul class="hot_word">
	            <li><a href="" target="_blank">保湿</a><s class="line"></s></li>
	            <li><a target="_blank" href="C">面膜</a><s class="line"></s></li>
	            <li><a target="_blank" href="">洗面奶</a><s class="line"></s></li>
	            <li><a target="_blank" href="">补水</a><s class="line"></s></li>
	            <li><a target="_blank" href="">香水</a><s class="line"></s></li>
	            <li><a target="_blank" href="">眼霜</a><s class="line"></s></li>
	            <li><a target="_blank" href="">口红</a><s class="line"></s></li>
	            <li><a target="_blank" href="">护肤套装</a><s class="line"></s></li>
	            <li><a target="_blank" href="">BB霜</a></li>
	        </ul>
	    </div>
	    <div id="cart_box" class="cart_box fr cur-current">
	        <a id="cart" class="cart_link" href="<?php echo U('Cart/index');?>" rel="nofollow">
	            <img src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/images/cart.gif" class="cart_gif" width="28" height="28">
	            <span class="text">去购物车结算</span>
	            <span class="num" style="display: none;"></span>
	            <s class="icon_arrow_right"></s>
	        </a>
	
	        <div class="cart_content" id="cart_content">
	            <i class="cart-icons"></i>
	            <div class="cart_content_null">购物车中还没有商品，<br>快去挑选心爱的商品吧！</div>
	            <!--<div class="cart_content_all">
	                <div class="cart_left_time">已超过购物车商品保留时间，请尽快结算。</div>
	                <div class="cart_content_center"></div>
	                <div class="con_all">
	                    <div class="price_whole"><span>共<span class="num_all"></span>件商品</span></div>
	                    <div><span class="price_gongji">共计<em>￥</em><span class="total_price">69</span></span><a href="" class="cart_btn" rel="nofollow">去购物车结算</a></div>
	                </div>
	            </div>-->
	        </div>
	    </div>
	</div>
	<!--logo和搜索部分-->
	<!--导航条部分-->
	<div class="header_bottom">	
		<div class="channel_nav_box">    
			<div class="channel_nav_list_wrap">
				<ul class="channel_nav_list fl">
					<li><a class="home" href="<?php echo U('Index/Index/index');?>">首页</a></li>
					<!--<li><a href="<?php echo U('Category/index');?>">全部商品</a></li>-->
							<?php foreach($topCate as $k => $v): ?>
							
			<li><a href="<?php echo U('Category/index',array('cid'=>$v[cid]));?>"><?php echo $v['cname'] ?></a></li>
		
			<?php endforeach ?>
					
				</ul>
				<div class="header_pop_subAtc">
					<div class="mz_imglist fl">
						<a target="_blank" href=""><img src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/images/30573_254_135_003-web.jpg"></a>
						<a target="_blank" href=""><img src="http://127.0.0.1/jumeiphp/Application/Index/View/Public/images/30573_254_135_005-web.jpg"></a>
					  </div>
					  <div class="mz_inner fl">
					  	<dl style="border-left: none;">
					  		<dt class="item_int">国际大牌<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  	<dl>
					  		<dt class="item_hufu">护肤<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  	<dl>
					  		<dt class="item_caizhuang">彩妆<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  	<dl style="border-left: none;border-bottom: none;">
					  		<dt class="item_xiangfen">香氛<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  	<dl border-bottom: none;>
					  		<dt class="item_nanshi">男士专区<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  	<dl border-bottom: none;>
					  		<dt class="item_hot">热门专区<a href=""></a></dt>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  		<dd><a href="">兰蔻</a></dd>
					  	</dl>
					  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--头部-->
	
	<!-- <div id="top-d2">
		<div class="center">
			<div class="logo"><a href=""> </a></div>
			<div class="cart"><a href="">去购物车结算</a></div>
		</div>
	</div> -->

	<!-- 产品内容信息 -->
	<div id="pro-info">
		<div class="pro-pic">
			<ul class="big_pic_list">
			<?php foreach ($goodData['mid_pic'] as $k=>$v){?>
				<li><img src="http://127.0.0.1/jumeiphp/<?php echo $v;?>" alt="" /></li>
			<?php }?>
			</ul>
			<b class="fangkuai"></b>
			<div id="cover"></div>
			<div class="smlpic">
				<a class="pre" href="javascript:;"></a>
				<a class="next disabled" href="javascript:;"></a>
				<div class="pic_ul">
					<ul>
					<?php foreach ($goodData['small_pic'] as $k=>$v){?>
						<li><img src="http://127.0.0.1/jumeiphp/<?php echo $v;?>" alt="" /></li>
					<?php }?>
					</ul>
				</div>
			</div>
		</div>	
		<div class="biggest_pic">
			<ul>
			<?php foreach ($goodData['big_pic'] as $k=>$v){?>
				<li><img src="http://127.0.0.1/jumeiphp/<?php echo $v;?>" alt="" /></li>
			<?php }?>
			</ul>
		</div>
		
		<div class="jingxuan">
				<h3 class="title">
					<p><?php echo $goodData['gname'];?></p>
					<!-- <span>Mediheal N.M.F aqaring ampoule mask</span> -->
				</h3>
				<div class="logo">
					<img src="http://127.0.0.1/jumeiphp/<?php echo $goodData['logo'];?>" style="width: 120px;height: 60px;" />
					<!--<p><?php echo $goodData['bname'];?></p>-->
					<!-- <span>韩国品牌</span> -->
				</div>
				<div class="des"><?php echo $goodData['msg'];?></div>
				<div class="price">
					<div class="a1">
						¥<span class="b1" money="<?php echo $goodData['mall_price'];?>"><?php echo $goodData['mall_price'];?></span><span class="b2"> ¥<?php echo $goodData['market_price'];?></span>
					</div>
					<!--<div class="a2">价格明细 》</div>-->
					<!-- <div class="a3">海外官网价：₩30000 &nbsp;&nbsp;(约¥166.9)</div> -->
					<div class="color">
						<span>净含量:</span>
						<ul class="attr">
							<?php foreach ($goodData['capacity'] as $k=>$v){?>
								<li>
									<a href="javascript:;" gaid="<?php echo $v['gaid'];?>"><?php echo $v['attr'];?></a>
								</li>
							<?php }?>
						</ul>
						<script type="text/javascript">
							$('.color .attr li').click(function() {
								$(this).addClass('onclick').siblings('li').removeClass('onclick');
							});
						</script>
					</div>
					<div class="size">
						<span>包&nbsp;&nbsp;&nbsp;&nbsp;装:</span>
						<ul class="attr">
							<?php foreach ($goodData['pack'] as $k=>$v){?>
								<li>
									<a href="javascript:;" gaid="<?php echo $v['gaid'];?>"><?php echo $v['attr'];?></a>
								</li>
							<?php }?>
							
						</ul>
						<script type="text/javascript">
							$('.size .attr li').click(function() {
								$(this).addClass('onclick').siblings('li').removeClass('onclick');
							});
						</script>
						<p style="margin-top:5px;float:left;display:none" id="total-box">库存: <strong id="total">0</strong> 件</p>
					</div>
				</div>		
				<div class="mianshui">
					<p class="a1">极速免税</p>
					<p class="a2">极速免税店，最快24小时到货<span>（比海外发货快15天）</span></p>
					<p class="a3">极速免税店，满2件或满299包邮（邮费5元） | 限购1件</p>
				</div>
				<div class="buy">41222<span>人已购买</span></div>
				<div class="time">本特卖剩余时间&nbsp;<span>5天23:04:28</span></div>
				<div class="xian"></div>
				<script type="text/javascript">
				$(function(){
					$('.attr li').click(function() {
						if ($('.onclick').length>=2) {
							var group = '';
							$.each($('.onclick'), function(k, v) {
								 group += ','+$(this).find('a').attr('gaid');
							});
							$.ajax({
								url: "<?php echo U('Content/ajax_size');?>",
								type: 'POST',
								dataType: 'json',
								data: {group:group,gid:<?php echo $hd['get']['gid'];?>},
								success:function(data){
									$('#total').html(data[0]);
									$('#total-box').show();
									if (data[0]==0) {
										$('.join-car').addClass('null');
										$('.join-car').attr('on', '0');
									}else{
										$('.join-car').removeClass('null');
										$('.join-car').attr('on', '1');
									}
									var money = $('.b1').attr('money');
									var now_money = money*1+data[1];
									$('.b1').html(now_money);
//										$('.b1').html(now_money+'.00');
								}
							})
						};
					});
					$('.join-car').click(function() {
						if ($('.null').length<1 && $('.onclick').length>=2) {
							var group = '';
							$.each($('.onclick'), function(k, v) {
								 group += ','+$(this).find('a').attr('gaid');
							});
							var path = "<?php echo U('Index/Content/index');?>";
							var price = $('.b1').html();
                            
							$.ajax({
								url: "<?php echo U('Cart/ajax_cart');?>",
								type: 'POST',
								dataType: 'json',
								data: {group:group,gid:<?php echo $hd['get']['gid'];?>,price:price},
								success:function(data){
									// <a href="<?php echo U('Content/index',array('gid'=>$v['id']));?>" class="cart-good-title" target="_blank"><?php echo $v['name'];?></a>
									var str ='';	
									$.each(data['cart']['goods'], function(k, v) {
										str += '<li class="cart-good">';
										str += '<img src="';
										str += 'http://127.0.0.1/jumeiphp/'+v.options.logo+'"';
										str += 'alt="" class="cart-good-img" />';
										str += '<a href="';
										str += path;
										str += '/gid/'
										str += v.id;
										str += '"';
										str += 'class="cart-good-title" target="_blank">';
										str += v.name;
										str += '</a><p class="b1"><span>￥';
										str += v.price;
										str += '</span> x ';
										str += v.num;
										str += '</p></li>';
									});
									str += '<div class="bottom-go"><div class="money-left">';
									str += '<p class="good-num">';
									str += '共 <span>';
									str += data['cart']['total_rows'];
									str += '</span> 件商品</p>';
									str += '<p class="good-money">共计<span class="logo">￥</span><span>';
									str += data['cart']['total'];
									str += '</span></p></div>';
									str += '<a href="';
									str += "<?php echo U('Index/Cart/index');?>";
									str += '" class="go-pay">';
									str += '去购物车结算</a></div></div>';
									
									$('.cart-good-list').html(str);
									$('#join-success').fadeIn(300);
								}
							})
							
							
						
						}
						
				    $.ajax({
				    	url: "<?php echo U('Cart/iflogin');?>",
				    	type: 'POST',
				    	success:function(phpdata){
//				    		alert(phpdata);
						
				    		if(phpdata==1){
				    			if ($('.null').length<1 && $('.onclick').length>=2) {
				    				$('#join-success').fadeIn(300);
				    			}else{
				    				alert('请选择净含量和包装');
				    			}
				    		
				    		}
				    		else
				    		{
							if ($('.null').length<1 && $('.onclick').length>=2) {
									alert('请先登陆再进行选购哦!购物车添加成功^o^');
								}else{
									alert('请选择净含量和包装');
								}
				    		}
				    		
				    	}
				    })
					});
				})
				</script>
				<div class="cart" gid="<?php echo $goodData['gid'];?>">
					<a href="javascript:;" class="join-car" on="0">
						加入购物车
					</a></div>
			</div>
	</div>

	<!-- 产品详情区块 开始-->
	<div id="details">
		<div class="nav">
			<a href="#info">商品信息</a>
			<a href="#allinfo">商品详情</a>
			<a href="#usemethod">使用方法</a>
			<a href="#photo">商品实拍</a>
	<!--		<a href="#comment">用户口碑</a>
			<a href="#">关于极速免税店</a>-->
		</div>

		<div class="content">
			<div id="info" class="share pro-info">
				<div class="for title"></div>
				<div class="detail">
					<!--商品信息-->
					<?php echo $goodData['detail'];?>
				</div>
			</div>
			<div id="allinfo" class="share pro-info">
				<div class="allfor title"></div>
				<div class="detail">
					<!--商品详情-->
					<?php echo $goodData['service'];?>
				</div>
			</div>
			<div id="usemethod" class="share pro-info">
				<div class="usefor title"></div>
				<div class="detail">
					<!--使用方法-->
					<?php echo $goodData['use_method'];?>
				</div>
			</div>
			<div id="photo" class="share pro-info">
				<div class="photofor title"></div>
				<div class="detail">
					<!--商品实拍-->
					<?php echo $goodData['rel_photo'];?>
					
				</div>
			</div>
			

	<!--添加购物车提示成功-->
	<div id="join-success">
		<div id="success-box">
			<p class="success">
				<span class="success-logo"></span>
				已成功加入购物车
			</p>
			<p class="where">
				<a href="javascript:;" class="go-on">继续逛逛</a>
				<a href="<?php echo U('Cart/index');?>" class="go-pay">去购物车结算</a>
			</p>
			<span class="close"></span>
		</div>
	</div>
	<!--添加购物车提示成功结束-->
	<script type="text/javascript">
		$('#success-box .close').click(function() {
			$('#join-success').fadeOut(300);
		});
		$('.go-on').click(function() {
			$('#join-success').fadeOut(300);
		});
	</script>
			
			
			
		</div>

	</div>
	<div id="bt-info">
		<div class="center"></div>
	</div>
	<!-- 产品详情区块 结束-->

</body>
</html>